using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using PacManPP.Objects;
using PacManPP.Managers;
using System.IO;
using GameStateManagement;



namespace PacManPP
{
 
    public class Game1 : Microsoft.Xna.Framework.Game
    {
        GraphicsDeviceManager graphics;
        SpriteBatch spriteBatch;
        ScreenManager screenManager;
        ContentManager contentManager;

        int drawDelta = 0;
        int updateDelta = 0;
       
        //GameManager gameManager;

        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);           
            Content.RootDirectory = "Content";
            //gameManager = new GameManager();
        }

        protected override void Initialize()
        {

            
            base.Initialize();
           
        }

       
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
        }

        protected override void UnloadContent()
        {
          
        }

  
        protected override void Update(GameTime gameTime)
        {
          
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
                this.Exit();
           
          
            base.Update(gameTime);
        }

    
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            
                base.Draw(gameTime);
            
        }
    }
}
